package cn.icebreak.cartoon.ui;

import android.os.Bundle;
import android.support.design.widget.TextInputEditText;
import android.support.design.widget.TextInputLayout;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import cn.icebreak.cartoon.R;
import cn.icebreak.cartoon.global.Route;

/**
 * 登陆页面
 */
public class LoginActivity extends AppCompatActivity {

    @BindView(R.id.tv_login_close)
    TextView tvLoginClose;
    @BindView(R.id.et_login_name)
    TextInputEditText etLoginName;
    @BindView(R.id.text_input_layout_user)
    TextInputLayout textInputLayoutUser;
    @BindView(R.id.et_login_key)
    EditText etLoginKey;
    @BindView(R.id.text_input_layout_phone)
    TextInputLayout textInputLayoutPhone;
    @BindView(R.id.tv_login_login)
    TextView tvLoginLogin;
    @BindView(R.id.tv_login_register)
    TextView tvLoginRegister;
    @BindView(R.id.tv_login_password)
    TextView tvLoginPassword;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.tv_login_close, R.id.tv_login_login})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.tv_login_close:
                finish();
                break;
            case R.id.tv_login_login:
                Route.j2Read(this);
                finish();
                break;
        }
    }
}
